package com.liangwj.springbootdesignpatterns.structureTypePatterns.decorator.demo_2;

public class DecoratorDemo2Test {
    public static void main(String[] args) {

        Beverage beverage = new HouseBlend();
        beverage = new Mocha(beverage);
        beverage = new Whip(beverage);

        System.out.println("description : " + beverage.getDescription());
        System.out.println("cost : " + beverage.cost());
    }
}
